﻿<%@ Page Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true"
    CodeBehind="SRV_Book_Stock_Record.aspx.cs" Inherits="School.Pages.BOOKS.SRV_Book_Stock_Record" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Register Src="../UserControls/CampusPackage.ascx" TagName="CampusPackage" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <table align="right" dir="rtl">
            <tr>
                <td colspan="1" rowspan="2">
                    <uc1:CampusPackage ID="CampusPackage1" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="padding-right: 15px; width: 80px;">
                </td>
                <td>
                    <asp:Label ID="Label1" runat="server" Width="500px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <div style="float: right; width: 180px; padding-right: 100px;">
                        <asp:Button ID="btnSearch" runat="server" CssClass="graybutton" Text="بحث" ValidationGroup="bu"
                            Width="81px" OnClick="btnSearch_Click" />
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="color: Green">
                    <asp:Label ID="lblResult" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="padding-right:50px;">
                    <asp:GridView ID="gvdata" runat="server" AlternatingRowStyle-CssClass="GridItemAltername"
                        AutoGenerateColumns="False" CssClass="Grid" DataKeyNames="Id" FooterStyle-CssClass="GridHeaderFooter"
                        HeaderStyle-CssClass="GridHeaderFooter" PagerStyle-CssClass="GridPager" Width="100%">
                        <Columns>
                            <asp:BoundField DataField="Code" HeaderText="كود الكتاب" />
                            <asp:BoundField DataField="Name" HeaderText="الكتاب" />
                            <asp:BoundField DataField="BookQty" HeaderText="الكميه المخزنيه" />
                            <asp:TemplateField HeaderText="الكميه الفعليه">
                                <ItemTemplate>
                                    <div style="text-align:center">
                                    <asp:TextBox ID="txtQty" runat="server" onkeypress="return FilterFloat(this, event)"></asp:TextBox>
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="الفرق بين الكميات">
                                <ItemTemplate>
                                 <div style="text-align:center">
                                    <asp:TextBox ID="txtDifferance" runat="server" BackColor="White" onkeypress="return FilterFloat(this, event)"
                                        ReadOnly="true">
                                    </asp:TextBox>
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="padding-right: 220px; padding-top: 20px; height: 50px;">
                    <asp:Button ID="btnSaveStock" runat="server" CssClass="graybutton" Text="حساب الفرق"
                        Width="90" OnClick="btnSaveStock_Click" />
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
